# Global Revolutions

#META#1- The Liberal Revolution (Trigger: 1845+,lack of specified Political Reforms, ?Monarchy?)
#					A) The Revolts are spreading [POPs 4-6=Con+5,Mil+7/POP 9= Mil+5] 

# The Liberal Revolution
event = { 
	id = 25000
	random = no
	invention = yes
	
	trigger = {
		civilized = yes
		NOT = { government = { type = liberal } }
		NOT = { government = { type = anarcho_liberal } }
		NOT = { constitution = { type = democracy } }
		NOT = { reform = { type = trade_unions level = socialist } }
		NOT = { reform = { type = trade_unions level = all } }
		NOT = { reform = { type = voting_rights level = wealth } }
		NOT = { reform = { type = voting_rights level = suffrage } }		
		NOT = { 
			OR = {
				AND = { 
					reform = { type = press_rights level = free_press }
					reform = { type = political_parties level = right_to_ban }
				}
				AND = { 
					reform = { type = press_rights level = free_press }
					reform = { type = political_parties level = all_allowed }
				}
				AND = {
					reform = { type = press_rights level = censorship }
					reform = { type = political_parties level = right_to_ban }
				}
				AND = { 
					reform = { type = press_rights level = censorship }
					reform = { type = political_parties level = all_allowed }
				}
			}
		}
		NOT = { local_flag = { name = LIBERAL_REVOLUTION value = 1 } }

	}

	date = { day = 21 month = february year = 1845 }
	offset = 25
	deathdate = { day = 30 month = december year = 1920 }
	
	name = "EVT_25000_NAME"
	desc = "EVT_25000_DESC"
	
	
	action_a = {
		name = "ACTIONNAME25000A" # The Revolts are spreading
		command = { type = pop_consciousness which = capitalists value = 5  }
		command = { type = pop_consciousness which = clerks value = 5 }
		command = { type = pop_consciousness which = craftsmen value = 5  }
		command = { type = pop_militancy which = capitalists value = 3  }
		command = { type = pop_militancy which = clerks value = 3 }
		command = { type = pop_militancy which = craftsmen value = 3  }
		command = { type = pop_militancy which = labourers value = 3  }
		command = { type = local_setflag which = LIBERAL_REVOLUTION  value = 2 }
		command = { type = plurality value = 20 }

	}
}

#META#2- The End of the Liberal Revolution (Trigger: 1850+,META#1, No revolting units)
#						A) Order is upheld [POPs 4-6=Con-5,Mil-7/POP 9= Mil-5]

# The End of the Liberal Revolution
event = { 
	id = 25001
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = LIBERAL_REVOLUTION_OVER value = 1 } }
		local_flag = { name = LIBERAL_REVOLUTION value = 1 }
	}
	
	name = "EVT_25001_NAME"
	desc = "EVT_25001_DESC"
	
	date = { day = 21 month = february year = 1850 }
	offset = 25
	deathdate = { day = 30 month = december year = 1920 }
	
	action_a = {
		name = "ACTIONNAME25001A" # Order is upheld
		command = { type = pop_consciousness which = capitalists value = -3  }
		command = { type = pop_consciousness which = clerks value = -3 }
		command = { type = pop_consciousness which = craftsmen value = -3  }
		command = { type = pop_militancy which = capitalists value = -4  }
		command = { type = pop_militancy which = clerks value = -4 }
		command = { type = pop_militancy which = craftsmen value = -4  }
		command = { type = pop_militancy which = labourers value = -4  }
		command = { type = local_setflag which = LIBERAL_REVOLUTION_OVER  value = 2 }
	}
}


#META#3- The Socialist Revolution (Trigger: 1905+,lack of specified Social Reforms, ?Monarchy?)
#						A) The Revolts are spreading [POPs 7-9 =Con+5,Mil+7/POP 6= Mil+5] 

# The Socialist Revolution
event = { 
	id = 25002
	random = no
	invention = yes
	
	trigger = {
		NOT = { government = { type = socialist } }
		NOT = { government = { type = communist } }
		NOT = { constitution = { type = proletarian_dictatorship } }
		NOT = { reform = { type = trade_unions level = all } }
		NOT = { reform = { type = voting_rights level = suffrage } }
		
		NOT = { 
			reform = { type = political_parties level = right_to_ban }
			reform = { type = press_rights level = free_press }
		}
		NOT = { local_flag = { name = SOCIALIST_REVOLUTION value = 1 } }

	}
	
	date = { day = 21 month = february year = 1890 }
	offset = 25
	deathdate = { day = 30 month = december year = 1920 }

	name = "EVT_25002_NAME"
	desc = "EVT_25002_DESC"
	
	
	action_a = {
		name = "ACTIONNAME25000A" # The Revolts are spreading
		command = { type = pop_consciousness which = soldiers value = 5  }
		command = { type = pop_consciousness which = farmers value = 5 }
		command = { type = pop_consciousness which = labourers value = 5  }
		command = { type = pop_militancy which = soldiers value = 3  }
		command = { type = pop_militancy which = farmers value = 3 }
		command = { type = pop_militancy which = labourers value = 3  }
		command = { type = pop_militancy which = craftsmen value = 2  }
		command = { type = local_setflag which = SOCIALIST_REVOLUTION  value = 2 }
		command = { type = plurality value = 35 }
	}
}
						
#META#4- The End of the Liberal Revolution (Trigger: 1920+,META#3, No revolting units)
#						A) Order is upheld [POPs 7-9=Con-5,Mil-7/POP 6= Mil-5]
						
# The End of the Socialist Revolution
event = { 
	id = 25003
	random = no
	invention = yes
	
	trigger = {
		NOT = { local_flag = { name = SOCIALIST_REVOLUTION_OVER value = 1 } }
		local_flag = { name = SOCIALIST_REVOLUTION value = 1 }
	}
	
	name = "EVT_25003_NAME"
	desc = "EVT_25003_DESC"
	
	date = { day = 1 month = january year = 1919 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }
	
	action_a = {
		name = "ACTIONNAME25001A" # Order is upheld
		command = { type = pop_consciousness which = soldiers value = -3  }
		command = { type = pop_consciousness which = farmers value = -3 }
		command = { type = pop_consciousness which = labourers value = -3  }
		command = { type = pop_militancy which = soldiers value = -4  }
		command = { type = pop_militancy which = farmers value = -4 }
		command = { type = pop_militancy which = labourers value = -4  }
		command = { type = pop_militancy which = craftsmen value = -3  }
		command = { type = local_setflag which = SOCIALIST_REVOLUTION_OVER  value = 2 }
	}
}